﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Cofe.Core;

namespace Cofe.Web.Interfaces
{
    /// <summary>
    /// Format an object and parameters to a HttpResponseMessage, which sent to client.
    /// </summary>
    public interface IHttpResponseMessageFormatter : ICofeService
    {
        bool CanCreateResponse(HttpRequestMessage request, object returnVal, ParameterDic pd,
            ResponseFormatterInfo info);

        HttpResponseMessage CreateResponse(HttpRequestMessage request, object returnVal, ParameterDic pd,
            ResponseFormatterInfo info);
    }
}
